import com.rpcfx.client.Rpcfx;
import com.test.api.User;
import com.test.api.UserService;

/**
 * @ProjectName: learning
 * @Package: PACKAGE_NAME
 * @ClassName: RpcfxClientApplication
 * @Description:
 * @Date: 2021/11/12 12:21 上午
 * @Version: 1.0
 */
public class RpcfxClientApplication {


    public static void main(String[] args) {

        UserService userService = Rpcfx.create(UserService.class);
        User user = userService.findById(1);
        System.out.println("find user id=1 from server: " + user.getName());


    }
}
